﻿using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using TyMES.Communication.Response;

namespace TyMES.Communication.Request
{
    public class MaterialRequest
    {
        public string serviceId = "Base002_Material";
        public string factoryCode = "TH13";
    }

    public class MaterialResponse: NormalResponse.Response
    {
        public List<FMMaterial> data { get; set; }
    }
    public class FMMaterial
    {
        [JsonPropertyName("addTime")]
        public string addTime { get; set; }

        [JsonPropertyName("componentCode")]
        public string componentCode { get; set; }

        [JsonPropertyName("dataStatus")]
        public string dataStatus { get; set; }

        [JsonPropertyName("editTime")]
        public string editTime { get; set; }

        [JsonPropertyName("factoryCode")]
        public string factoryCode { get; set; }

        [JsonPropertyName("id")]
        public string id { get; set; }

        [JsonPropertyName("isDelete")]
        public string isDelete { get; set; }

        [JsonPropertyName("materialCode")]
        public string materialCode { get; set; }

        [JsonPropertyName("materialName")]
        public string materialName { get; set; }

        [JsonPropertyName("materialStatus")]
        public string materialStatus { get; set; }

        [JsonPropertyName("materialType")]
        public string materialType { get; set; }

        [JsonPropertyName("materialVersion")]
        public string materialVersion { get; set; }

        [JsonPropertyName("measureUnitCode")]
        public string measureUnitCode { get; set; }

        [JsonPropertyName("productBomType")]
        public string productBomType { get; set; }

        [JsonPropertyName("productModel")]
        public string productModel { get; set; }

        [JsonPropertyName("productModelCode")]
        public string productModelCode { get; set; }

        [JsonPropertyName("regular")]
        public string regular { get; set; }

        [JsonPropertyName("shipRegular")]
        public string shipRegular { get; set; }
    }
}
